package org.erp.store.strategy.impl;

import org.erp.common.enums.DeviceInventoryEvent;
import org.erp.store.domain.dto.BatchDeviceInventoryDto;
import org.erp.store.domain.dto.BatchDeviceInventoryResponseDto;
import org.springframework.stereotype.Component;

/**
 * 申请退库策略
 */
@Component
public class RequestRefundInventoryEventStrategy extends BaseInventoryEventStrategy {
    @Override
    public DeviceInventoryEvent getEvent() { return DeviceInventoryEvent.REQUEST_REFUND; }

    @Override
    public BatchDeviceInventoryResponseDto execute(BatchDeviceInventoryDto dto) {
        return batchUpdate(dto, null, defaultAfterPersistHook);
    }
}
